package com.snail.jj.androiddemos.tools;

import android.app.Application;
import android.util.DisplayMetrics;

/**
 * Created by snail on 2017/4/7.
 * @author snail
 */

public class Configs extends Application {

    private DisplayMetrics dm;

    private int sWidth;

    private int sHeight;

    private String mapAppKey = "nil appkey";

    private String sPackageName = "com.snail.jj.androiddemos";

    @Override
    public void onCreate() {
        super.onCreate();
        dm = getResources().getDisplayMetrics();
        sWidth = dm.widthPixels;
        sHeight = dm.heightPixels;
    }

    public int getsWidth() {
        return sWidth;
    }

    public int getsHeight() {
        return sHeight;
    }

    public String getMapAppKey() {
        return mapAppKey;
    }

    public String getsPackageName() {
        return sPackageName;
    }
}

